<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/2/13
  Time: 9:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common/web_top.jsp" %>

<div class="bgSortScroll">
    <!-- ngIf: HbHr.hr54 -->
    <div class="public-bgContent">
        <!--提示操作-->
        <div class="public-bghint">
            <span ng-click="showMenu()" style="cursor: pointer;">提示操作&nbsp;&nbsp;<i
                    class="iconfont icon-icon-copy-copy"></i></span>
            <span class="calNum">筛选<span class=" result">0</span>条结果</span>
        </div>
        <ul class="public-ulList" ng-show="isMenu" ng-transclude="content">
            <menu-content class="">
                <li>显示拥有该栏目管理权限的数据；</li>
                <li>拥有权限的管理员会显示对应的操作按钮；</li>
            </menu-content>
        </ul>
        <div style="height: 20px;"></div>
        <!--tabel 列表-->
        <div class="table-scroll">
            <table class="table public-table PoInput">
                <thead>
                <tr>
                    <td class="">选择</td>
                    <td>发标时间</td>
                    <td>借款编号</td>
                    <%--<td>产品</td>
                    <td>客户姓名</td>--%>
                    <td>还款方式</td>
                    <td>年化利率</td>
                    <td>期限</td>
                    <td>标的金额</td>
                    <%--<td>业务员</td>--%>
                    <%--<td>部门</td>--%>
                    <td>标的状态</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody id="target_list">

                </tbody>

                <script type="text/x-handlebars-template" id="target_list_tpl">
                    {{#if content.list.[0]}}
                    {{#each content.list}}
                    <tr class="table-tr-hover ">
                        <td ng-if="!operation.examine" class="">
                            <input type="checkbox" name="ch_id" value="{{id}}" data-taskid="{{task_id}}" data-nodeid="{{node_id}}" />
                        </td>
                        <td>{{found_time}}</td>
                        <td>{{#IF_GT before_s_id node_id}}<span style="background: #e55a5b; padding: 3px 15px; color: #fff;">{{loan_number}}</span>{{else}}{{loan_number}}{{/IF_GT}}
                        </td>
                        <%--<td>{{product_name}}</td>
                        <td class="">{{personal_name}}</td>--%>
                        <td>按日计息</td>
                        <td>{{annualized_interest_rate}}</td>
                        <td class="">{{#IF_EQ repayment_way '4'}}{{#if at_id}}{{at_id}}天{{/if}}{{else}}{{term_name}}{{/IF_EQ}}</td>
                    <%--<td class="">{{user_name}}</td>--%>
                        <%--<td class="">
                            {{#if d_name}}
                            {{#if d_name3}}{{d_name3}}&gt;&nbsp;{{/if}}{{#if d_name2}}{{d_name2}}&gt;&nbsp;{{/if}}{{#if
                            d_name}}{{d_name}}{{/if}}
                            {{/if}}
                        </td>--%>
                        <td>￥{{#thounsandBit apply_money}}{{/thounsandBit}}</td>
                        <td>{{#IF_EQ status 1}}募集中{{else}}募集结束{{/IF_EQ}}</td>
                        <td>
                            <div class="se-re sel-blue">
                                <select class="tabHint selectDelePo596 ng-not-empty operations"
                                        product_id="{{product_id}}" order_id="{{oid}}" at_id="{{at_id}}"
                                        s_id="{{s_id}}" repayment_way="{{repayment_way}}"
                                        approvalType="{{approvalType}}" ari="{{annualized_interest_rate}}" apply_money="{{apply_money}}" status="{{status}}"
                                        time="{{issuing_time}}" full_mark_time="{{full_mark_time}}">
                                    <option value="-1" selected="selected">选择操作</option>
                                    {{#each ../fourthMenus}}
                                    <option value="{{key}}" {{#IF_EQ key 'investNow'}}
                                    {{#IF_NEQ ../../status '1'}}style='display:none'{{/IF_NEQ}}
                                    {{/IF_EQ}}>{{name}}</option>
                                    {{/each}}
                                </select>
                                <span class="se-po-blue"></span>
                            </div>
                            <button class="operations_record tabHint btnQuery596" path="loanBefore" params="record" id="{{id}}">
                                操作记录
                            </button>
                        </td>
                    </tr>
                    {{/each}}
                    {{else}}
                    <tr class="">
                        <td colspan="16">暂时找不到数据</td>
                    </tr>
                    {{/if}}
                </script>

            </table>
        </div>
        <div class="public-botPage">
            <!-- ngIf: operation.batch -->
            <div class="public-botPage-left " ng-if="operation.batch">
                <label id="ch_id_all">
                    &nbsp;&nbsp;&nbsp;<input type="checkbox" name="ch_id_all">
                    &nbsp;全选
                </label>
                <div class="se-re">
                    <select id='bulk_operation' autocomplete="off"
                            class="tabHint PoListSele ng-pristine ng-untouched ng-valid ng-not-empty"
                            ng-model="selectType.default" ng-change="F.selectQuery('PoListSele','ch_id')">
                        <option value="" selected="selected">批量操作</option>
                        <option value="删除" path="loanBefore" params="delePo" param="type:2"
                                ng-if="HbHr.hr57 &amp;&amp; operation._type =='orderList'" class="">
                            删除所选
                        </option><!-- end ngIf: HbHr.hr57 && operation._type =='orderList' -->
                        <!-- ngIf: operation._type !=='orderList' -->
                    </select>
                    <span class="se-po"></span>
                </div>
            </div><!-- end ngIf: operation.batch -->
            <script type="text/x-handlebars-template" id="special_fourth_tpl">
                {{#each .}}
                {{#IF_EQ key 'orderIn'}}
                <button class="tabHint" id="orderIn">
                    录入订单
                </button>
                {{/IF_EQ}}
                {{/each}}
            </script>
            <div class="order-page-container page-container" style="float: right; padding: 15px 0;"></div>
        </div>
    </div>


</div>

<div class="winBox invest_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明：弹窗 -->
        <div class="winBox2 ">
            <div class="putloan">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">立即投资</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox">
                        <div class="resultPadd">
                            <table class="resultTab" style="margin-top: 20px;">
                                <tbody>
                                <!--收款账号 -->
                                    <tr>
                                        <td>投资金额</td>
                                        <td class="tdWei">
                                            <label style="width: 300px;">
                                                <input id="investment_amount" style="width: 275px;" type="text" autocomplete="off" class="ng-pristine ng-untouched ng-valid ng-empty">元
                                            </label>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="deleBtn">
                                    <button style="background: #E55A5B;" id="sureInvest">确认投资</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<%--出借记录弹窗--%>
<div class="winBox loanedRecord_winBox">
    <div class="winBox1"><!-- 说明： 操作记录模板 -->
        <div class="winBox3 ">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">出借记录</span>
                    <i id="" record_show class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div id="loanedRecord_list" class="contentBox" style="padding-bottom: 50px;"></div>
                <!-- 中间列表 -->
                <script type="text/x-handlebars-template" id="loanedRecord_list_tpl">
                    {{#IF_GT size 0}}
                    <div class="centerBox">
                        <div class="ccc">
                            {{#each list}}
                            <div class="centerList D-takeList" style="overflow-y: auto">
                                <div class="centerImg">
                                    <ul class="centerUl">
                                        <li class="centerLi0">
                                            <span>出借人：{{#cover telephone ''}}{{/cover}}</span>
                                        </li>
                                        <li class="center-new"><span>出借金额：{{{investment_amount}}}</span></li>
                                    </ul>
                                    <div class="centerDate">{{investment_time}}</div>
                                </div>
                            </div>
                        </div>
                        {{/each}}
                    </div>
                    {{/IF_GT}}
                    <div class="public-botPage-right"
                         style="height: 50px;padding-top: 10px;padding-left: 100px;float: right;">
                        <div ng-include="pageUrl" onload="pageOnload()"></div>
                    </div>
                    {{#IF_EQ size 0}}
                    <div class="centerBox">
                        <div class="centerList">
                            <div class="centerImg">
                                <ul class="centerUl">
                                    <li class="centerLi1">暂无操作纪录</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    {{/IF_EQ}}
                    <div class="page-container loanedRecord-page-container" style="float: right; padding: 15px 0;"></div>
                </script>
                <!-- 底部分页 -->
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="static/js/page/loanBefore/targetManage.js?_v=190102162159"></script>
<%@ include file="../common/web_bottom.jsp" %>
